package com.dddd.blog.api.user.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 等级表
 * </p>
 *
 * @author dddd
 * @since 2022-02-27
 */
@TableName("ums_level")
@ApiModel(value = "Level对象", description = "等级表")
@Data
public class Level implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("等级名称")
    private String levelName;

    @ApiModelProperty("等级值")
    private Integer levelValue;

    @ApiModelProperty("备注")
    private String note;

    @ApiModelProperty("是否默认等级,1或0")
    private Integer levelDefault;

    @Override
    public String toString() {
        return "Level{" +
            "id=" + id +
            ", levelName=" + levelName +
            ", levelValue=" + levelValue +
            ", note=" + note +
            ", levelDefault=" + levelDefault +
        "}";
    }
}
